scores = [71, 82, 93, 85, 64, 72, 78]

max_value = 0
sum_num = 0
i = 0
# 遍历成绩列表,求出最大值和平均分
for score in scores:
    i += 1
    sum_num += score
    if max_value < score:
        max_value = score


print("最大值{}".format(max_value))
print("平均分{}".format(sum_num / i))


# 求和api: sum; 最大值 max

print("最大值{}".format(max(scores)))
print("平均分{}".format(sum(scores) / len(scores)))